﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sample.BusinessEntities
{
    public class PersonModel
    {
        public int Id { get; set; }

        [Display(Name = "名字")]
        [Required(ErrorMessage ="名字不能为空")]
        public string Name { get; set; }

        [Display(Name = "生日")]
        [Required(ErrorMessage = "生日不能为空")]
        public Nullable<System.DateTime> BirthDate { get; set; }

        [Display(Name = "创建时间")]
        public System.DateTime CreatedTime { get; set; }

        [Display(Name = "创建人")]
        public string CreatedBy { get; set; }

        [Display(Name = "更新时间")]
        public System.DateTime UpdatedTime { get; set; }

        [Display(Name = "更新人")]
        public string UpdatedBy { get; set; }

        public string TransactionId { get; set; }

        [Display(Name = "版本")]
        public int VersionNo { get; set; }
    }
}
